// 登录接口
import axios from "@/request/axios";

// 登录
export function login(data: any){
    return axios({        
        url: "/system/auth/login",
        method:"POST",
        data
    })
}


// 获取用户信息
export function getTokenUser(){
    return axios({
        url: "/system/auth/userInfo",
        method:"POST",
    })
}


// 退出登录
export function logout(){
    return axios({
        url: "/system/auth/logout",
        method:"POST",
    })
}

export function refreshToken(data: any){
    return axios({
        url: "/system/auth/refreshToken",
        method:"POST",
        data,
    })
}